networking.interfaces.<name>.ipv4.addresses

List of IPv4 addresses that will be statically assigned to the interface.

Type
list of (submodule)
Default
[ ]
Example
[
  {
    address = "10.0.0.1";
    prefixLength = 16;
  }
  {
    address = "192.168.1.1";
    prefixLength = 24;
  }
]
Declared
<nixpkgs/nixos/modules/tasks/network-interfaces.nix>